import request from '@/utils/request'

// 查询shopping列表
export function listShopping(query) {
  return request({
    url: '/shopping/shopping/list',
    method: 'get',
    params: query
  })
}

// 查询shopping详细
export function getShopping(id) {
  return request({
    url: '/shopping/shopping/' + id,
    method: 'get'
  })
}

// 新增shopping
export function addShopping(data) {
  return request({
    url: '/shopping/shopping',
    method: 'post',
    data: data
  })
}

// 修改shopping
export function updateShopping(data) {
  return request({
    url: '/shopping/shopping',
    method: 'put',
    data: data
  })
}

// 删除shopping
export function delShopping(id) {
  return request({
    url: '/shopping/shopping/' + id,
    method: 'delete'
  })
}
